<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="https://s3.pstatp.com/cdn/expire-1-M/jquery/3.2.1/jquery.min.js"></script>
    <title>Document</title>
</head>
<body>
    <p>页面</p>
    <input type="button" value="点我" id="btn" />
</body>

<script type="text/javascript">
    $(function(){
        $('#btn').click(function(){
            $.get('/home/test/test2', function(data){
                console.log(data)
            },'json')
        })
    })
</script>
</html>